<div class="portlet">
  <div class="portlet-header">
    <h1><%=t ".title"%></h1>
  </div>
  <div class="portlet-content">
    <% form_for(@setting) do |f| %>
      <%= f.error_messages %>

      <table>
        <tbody>
          <tr>
            <td><%= label_tag :type, t('activerecord.attributes.setting.type')  %></td>
            <td><%= @type %></td>
            <td><%= hidden_field_tag :type, @type %></td>
          </tr>
          <tr>
            <td><%= f.label :var, t('activerecord.attributes.setting.var') %></td>
            <td><%= f.text_field :var %></td>
          </tr>
          <tr>
            <td><%= f.label :value, t('activerecord.attributes.setting.value') %></td>
            <td><%= text_field_tag :value, @str_value, :size => 30 %> </td>
            <td><%= "formato valido: #{@format_value}" %></td>
          </tr>
        </tbody>
      </table>

      <div class="line-buttons">
        <%= f.submit t('btn_update') %>
      </div>
      <div class="line-links">
        <%= link_to t('btn_show'), setting_path(@setting) %> |
        <%= link_to t('btn_back'), settings_redirect_back_path(settings_path) %>
      </div>
    <% end %>
  </div>
  <div class="portlet-footer">
  </div>
</div>